<ul class="nav nav-list">
    <li class="{:is_controller('index')}">
        <a href="{:url('index/index')}">
            <i class="menu-icon fa fa-tachometer"></i>
            <span class="menu-text"> 控制面板 </span>
        </a>

        <b class="arrow"></b>
    </li>


    <li class="{:is_controller('article', 'active open')}">
        <a href="#" class="dropdown-toggle">
            <i class="menu-icon fa fa-desktop"></i>
            <span class="menu-text">
                文章管理
            </span>

            <b class="arrow fa fa-angle-down"></b>
        </a>

        <b class="arrow"></b>

        <ul class="submenu">
            <?php if( auth_check('article/lists', session('member.id')) ): ?>
            <li class="{:is_navi('article/lists')}">
                <a href="{:url('article/lists')}">
                    <i class="menu-icon fa fa-caret-right"></i>
                    文章列表
                </a>

                <b class="arrow"></b>
            </li>
            <?php endif;?>

            <li class="{:is_navi('article/add')}">
                <a href="{:url('article/add')}">
                    <i class="menu-icon fa fa-caret-right"></i>
                    添加文章
                </a>

                <b class="arrow"></b>
            </li>

            <li class="{:is_navi('article/recycle')}">
                <a href="{:url('article/recycle')}">
                    <i class="menu-icon fa fa-caret-right"></i>
                    回收站
                </a>

                <b class="arrow"></b>
            </li>
        </ul>
    </li>

    <li class="{:is_controller('system|user|group|rule', 'active open')}">
        <a href="#" class="dropdown-toggle">
            <i class="menu-icon fa fa-cogs"></i>
            <span class="menu-text">
                系统设置
                <!--<span class="badge badge-primary">5</span>-->
            </span>
            <b class="arrow fa fa-angle-down"></b>
        </a>

        <b class="arrow"></b>

        <ul class="submenu">
            <li class="">
                <a href="">
                    <i class="menu-icon fa fa-caret-right"></i>
                    个人中心
                </a>

                <b class="arrow"></b>
            </li>

            <li class="">
                <a href="">
                    <i class="menu-icon fa fa-caret-right"></i>
                    网站配置
                </a>

                <b class="arrow"></b>
            </li>

            <li class="{:is_controller('group', 'active open')}">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-caret-right"></i>
                    角色管理
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="{:is_navi('group/lists')}">
                        <a href="{:url('group/lists')}">
                            <i class="menu-icon fa fa-caret-right"></i>
                            角色列表
                        </a>

                        <b class="arrow"></b>
                    </li>

                    <li class="{:is_navi('group/add')}">
                        <a href="{:url('group/add')}">
                            <i class="menu-icon fa fa-caret-right"></i>
                            添加角色
                        </a>

                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <li class="{:is_controller('rule', 'active open')}">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-caret-right"></i>
                    权限管理
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="{:is_navi('rule/lists')}">
                        <a href="{:url('rule/lists')}">
                            <i class="menu-icon fa fa-caret-right"></i>
                            权限列表
                        </a>

                        <b class="arrow"></b>
                    </li>

                    <li class="{:is_navi('rule/add')}">
                        <a href="{:url('rule/add')}">
                            <i class="menu-icon fa fa-caret-right"></i>
                            添加权限
                        </a>

                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <li class="{:is_controller('user', 'active open')}">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-caret-right"></i>
                    用户管理
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="{:is_navi('user/lists')}">
                        <a href="{:url('user/lists')}">
                            <i class="menu-icon fa fa-caret-right"></i>
                            用户列表
                        </a>

                        <b class="arrow"></b>
                    </li>

                    <li class="{:is_navi('user/add')}">
                        <a href="{:url('user/add')}">
                            <i class="menu-icon fa fa-caret-right"></i>
                            添加用户
                        </a>

                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
        </ul>
    </li>
</ul><!-- /.nav-list -->